01914bd478d88b1a65fc8d5a3b9c623e4a0cc261,language/cypher/src/main/java/com/neueda/jetbrains/plugin/graphdb/language/cypher/formatter/CypherFormattingModelBuilder.java,CypherFormattingModelBuilder,createSpacingBuilder,#CodeStyleSettings#,39

Before Change


                .around(OP_MINUS).spaces(1)
                .around(OP_MUL).spaces(1)
                .around(OP_DIVIDE).spaces(1)
                .around(OP_MODULO).spaces(1)
                .around(OP_POW).spaces(1)
                .around(OP_EQUAL).spaces(1)
                .around(OP_NOTEQUALS).spaces(1)
                .around(OP_INVALIDNOTEQUALS).spaces(1)
                .around(OP_LESSTHEN).spaces(1)
                .around(OP_GREATHERTHEN).spaces(1)
                .around(OP_LESSTHANEQUALS).spaces(1)
                .around(OP_GREATERTHANEQUALS).spaces(1)

                .between(STATEMENT_ITEM, STATEMENT_ITEM).blankLines(1)
                .after(PATTERN_COMPREHENSION).lineBreakInCode();
    }

After Change


                .between(VARIABLE, NODE_LABELS).none()

                .between(K_FOREACH, PARENTHESE_OPEN).spaces(1)
                .between(EXPRESSION, OP_PIPE).spaces(1)
                .between(ID_IN_COLL, OP_PIPE).spaces(1)
                .between(FILTER_EXPRESSION, OP_PIPE).spaces(1)

                .aroundInside(PATTERN_ELEMENT, PATTERN_PART).none()
                .aroundInside(DASH, RELATIONSHIP_PATTERN).none()
                .aroundInside(LEFT_ARROW_HEAD, RELATIONSHIP_PATTERN).none()
                .aroundInside(RIGHT_ARROW_HEAD, RELATIONSHIP_PATTERN).none()

                .afterInside(NODE_LABEL, HINT).none()
                .afterInside(OP_MUL, MAYBE_VARIABLE_LENGTH).none()

                .around(OP_PLUS).spaces(1)
                .around(OP_MINUS).spaces(1)
                .around(OP_MUL).spaces(1)
                .around(OP_DIVIDE).spaces(1)
                .around(OP_MODULO).spaces(1)
                .around(OP_POW).spaces(1)
                .around(OP_EQUAL).spaces(1)
                .around(OP_NOTEQUALS).spaces(1)
                .around(OP_INVALIDNOTEQUALS).spaces(1)
                .around(OP_LESSTHEN).spaces(1)
                .around(OP_GREATHERTHEN).spaces(1)
                .around(OP_LESSTHANEQUALS).spaces(1)
                .around(OP_GREATERTHANEQUALS).spaces(1)

                .between(STATEMENT_ITEM, STATEMENT_ITEM).blankLines(1)
                .after(PATTERN_COMPREHENSION).lineBreakInCode()
                .between(K_RETURN, RETURN_BODY).spaces(1)
                .between(K_WITH, RETURN_BODY).spaces(1)
                .between(K_DISTINCT, RETURN_BODY).spaces(1);
    }
}